home *** CD-ROM | disk | FTP | other *** search
/ MacWorld 2003 May (DVD) / Macworld Resource DVD May 2003.toast / Data / Software / Games / JKII_Demo.sit / Jedi Knight II Demo / demo / assets0.pk3 / effects / spark.efx < prev    next >
Encoding:
Text File  |  2002-03-28  |  1.1 KB  |  98 lines

  1. // Directed spark effect
  2.  
  3. // Mini-explosion made out of a couple of lines
  4. Line
  5. {
  6.     count     2    4
  7.     life    100
  8.  
  9.     origin2    6 -10 -10        12 10 10
  10.  
  11.     width
  12.     {
  13.         start     0.2     0.5
  14.     }
  15.  
  16.     alpha
  17.     {
  18.         start     0.25     1.0
  19.         end    0.0
  20.         flags    linear
  21.     }
  22.     
  23.     shader
  24.     [
  25.         gfx/misc/spark
  26.         gfx/misc/spark2
  27.     ]
  28. }
  29.  
  30. // Bits that fly up and bounce off of architecture
  31. Tail
  32. {
  33.     count    0     1
  34.     life    700    900
  35.  
  36.     bounce    0.25    0.4
  37.  
  38.     vel    120 -80 -80    250 80 80
  39.     gravity    -350    -450
  40.  
  41.     size
  42.     {
  43.         start    0.3    0.4
  44.     }
  45.  
  46.     length
  47.     {
  48.         start    4.0    10.0
  49.         end    0.1    1.0
  50.         flags     linear
  51.     }
  52.  
  53.     shader
  54.     [
  55.         gfx/misc/spark
  56.     ]
  57. }
  58.  
  59. Particle
  60. {
  61.     life    900    1000
  62.  
  63.     vel    8 -6 -6    10 6 6
  64.     gravity    6    12
  65.  
  66.     size
  67.     {
  68.         start     2.0    6.0
  69.         end    6.0    12.0
  70.         flags    linear
  71.     }
  72.  
  73.     alpha
  74.     {
  75.         start    0.2    0.4
  76.         end     0.0
  77.         flags    linear
  78.     }
  79.  
  80.     shader
  81.     [
  82.         gfx/misc/steam
  83.     ]
  84. }
  85.  
  86. // Pick a random spark sound
  87. Sound
  88. {
  89.     sounds
  90.     [
  91.         sound/ambience/spark1.mp3
  92.         sound/ambience/spark2.mp3
  93.         sound/ambience/spark3.mp3
  94.         sound/ambience/spark4.mp3
  95.         sound/ambience/spark5.mp3
  96.         sound/ambience/spark6.mp3
  97.     ]
  98. }